﻿@model MvcApplication4.Models.Post

@{
    Layout = null;
}

<div id = "OP_Box">
    <div id="OP_Info">
        <div id = "OP_Info_text">@Html.DisplayFor(model => model.UserLink.UserName)</div>
        <div id = "OP_Info_Image"><img src="../../Content/Images/Profile/@Model.UserLink.Avatar1.Url" /></div>
    </div>
    
    <div id="OP_Text">
        <div id="OP_TimeStamp">
            <div style="float:left;">@Html.DisplayFor(model => model.Time)</div>
            @if (User.Identity.Name == Model.UserLink.UserName)
            {
                <div style="float:right;">@Html.ActionLink("Delete", "DeletePost", new { id = Model.PostId }) | @Html.ActionLink("Edit", "EditPost", new { id = Model.PostId })</div>
            }
        </div>
        
        <div id="OP_Text_text">@Html.DisplayFor(model => model.Text)</div>
        <div id="OP_Signature">Super Signature</div>
    </div>
</div>
